import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.column.operation.query',
            defaultMessage: '列表'
        })
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.column.operation.add',
            defaultMessage: '新增'
        }),
        format: '/add'
    },
    import: {
        url: '/import',
        title: formatMessage({
            id: 'routes.column.operation.import',
            defaultMessage: '导入'
        }),
        format: '/import'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.column.operation.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    signned: {
        url: '/:id/signned',
        title: formatMessage({
            id: 'routes.column.operation.signned',
            defaultMessage: '签收'
        }),
        format: '/{0}/signned'
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.column.operation.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    dateSupplement: {
        url: '/:id/dateSupplement',
        title: formatMessage({
            id: 'routes.column.operation.dateSupplement',
            defaultMessage: '日期补录'
        }),
        format: '/{0}/dateSupplement'
    }

});

export default routes;
